#ifndef _DBBREFERENCEDOBJECT_H_
#define _DBBREFERENCEDOBJECT_H_

#include "dbb.h"
#include "threading/dbbsafecounter.h"

//------------------------------------------------------------------------
class ReferencedObject
{
public:
	ReferencedObject();
	virtual ~ReferencedObject();

	void	addReference();
	void	releaseReference();

	int		getReferencedCount() const;

private:
	SafeCounter	m_counter;
};

#include "core/dbbreferenceobject.inl"

#endif